package com.jms.product.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jms.common.utils.PageUtils;
import com.jms.common.utils.Query;

import com.jms.product.dao.DailySalesDao;
import com.jms.product.entity.DailySalesEntity;
import com.jms.product.service.DailySalesService;


@Service("dailySalesService")
public class DailySalesServiceImpl extends ServiceImpl<DailySalesDao, DailySalesEntity> implements DailySalesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DailySalesEntity> page = this.page(
                new Query<DailySalesEntity>().getPage(params),
                new QueryWrapper<DailySalesEntity>()
        );

        return new PageUtils(page);
    }

}